<?php
/**
 * Created by PhpStorm.
 * User: zhangyi
 * Date: 17/3/11
 * Time: 上午11:55
 */
namespace backend\controllers;

use app\models\Feedback;
use Yii;

class SuggestionController extends BaseInterfaceController
{
    public function actionFeedback()
    {
        $uid = $this->originData['uid'];
        $feedback = $this->originData['content'];

        $model = new Feedback();
        $model->member_id = $uid;
        $model->content = $feedback;
        if(!$model->save()) {
            $this->status=-1;
            $this->message='操作失败';
        }
        $this->outputJson();

    }
}
